
package kg.manticore.site.components;

import org.hippoecm.hst.component.support.bean.BaseHstComponent;
import org.hippoecm.hst.core.component.HstComponentException;
import org.hippoecm.hst.core.component.HstRequest;
import org.hippoecm.hst.core.component.HstResponse;
import org.hippoecm.hst.core.sitemenu.HstSiteMenu;
import org.hippoecm.hst.core.sitemenu.HstSiteMenus;

public class LeftMenu  extends BaseHstComponent{

    @Override
    public void doBeforeRender(HstRequest request, HstResponse response) throws HstComponentException {

        HstSiteMenus hstSiteMenus = request.getRequestContext().getHstSiteMenus();
        HstSiteMenu main = hstSiteMenus.getSiteMenu("main");
        request.setAttribute("menu", main);
    }

}
